package com.neusoft.nepm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.neusoft.common.domain.Supervisor;
import com.neusoft.common.domain.SupervisorMesg;
import com.neusoft.common.domain.SupervisorMesgRequest;
import com.neusoft.config.FeignConfig;
import feign.QueryMap;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@FeignClient(name = "service-neps",url = "http://localhost:7000", configuration = FeignConfig.class)
public interface NepsServiceClient {
    @GetMapping("/service-neps/supervisor/find-belong")
    List<SupervisorMesg> findBelong(@RequestParam("code") String code);
    @GetMapping("/service-neps/supervisor/find-one")
    List<SupervisorMesg> findOne(@RequestParam("id") int id);
    @GetMapping("/service-neps/supervisor/getBy-id")
    Supervisor getById(@RequestParam("id") String id);
    @GetMapping("/service-neps/supervisor/update-status")
    Boolean updateStatus(@RequestParam("id") int id);
    @PostMapping ("/service-neps/supervisor/return-list")
    Page<SupervisorMesg> returnList(@RequestBody SupervisorMesgRequest request);
    @GetMapping("/service-neps/supervisor/update-grider")
    Boolean updateGrider(@RequestParam("bindID") int bindID, @RequestParam("code") String code);
    @GetMapping("/service-neps/supervisor/get-finished")
    List<SupervisorMesg> getFinish();
}
